Skip to content

feat(backend): added test sessionspaces for development#1275

Open
TBThomas56 wants to merge 1 commit intomainfrom
tbt/test-namespaces
Open

feat(backend): added test sessionspaces for development#1275
TBThomas56 wants to merge 1 commit intomainfrom
tbt/test-namespaces

Conversation

@TBThomas56
Copy link
Copy Markdown
Contributor

No description provided.

@TBThomas56 TBThomas56 force-pushed the tbt/test-namespaces branch from efd6b5b to 3de3dde Compare May 1, 2026 17:05
match Sessions::fetch(&ispyb_pool, &mut ldap_connection).await {
Ok(mut new_sessions) => {
if let Some(ref statics) = static_sessions {
statics.merge_into(&mut new_sessions);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what prevents these "static" sessions being repeatedly re-applied each loop?

.as_deref()
.map(StaticSessions::from_path)
.transpose()
.unwrap();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

expect is preferred over unwrap

sessions:
- proposal_code: ks
proposal_number: 10000
visits: [1, 2, 3, 4, 5]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 5?

visits: [1, 2, 3, 4, 5]
instrument: t01
members: []
gid: null
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it OK to have a null gid?

proposal_number: 10000
visits: [1, 2, 3, 4, 5]
instrument: t01
members: []
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a session with no members is not very useful?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants